package com.banksoft.cps.dao;

import com.banksoft.cps.bean.Device;
import com.banksoft.cps.bean.query.DeviceQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/1/2.
 */
@Repository
public interface DeviceDao {

    void insert(Device device);

    void update(Device device);

    List<Device> list(DeviceQuery query);

    long count(DeviceQuery query);

    Device findById(String id);

    Device findByDeveui(String deveui);

    void updateByDeveui(
                @Param("deveui") String deveui,
                @Param("jjll")String jjll ,
                @Param("ssll") String ssll,
                @Param("uploadTime") long uploadTime);
    void delete(String id);

}
